exports.data = {
	json: {
		kind: 'Snippet',
		body: ['"t-checkbox": "tdesign-miniprogram/checkbox/checkbox"'],
		detail: 'Checkbox 复选框',
		documentation: `在app.json或index.json中引入组件`,
	},
	wxml: {
		kind: 'Snippet',
		body: [
			'<t-checkbox value="{{ ${1:checked} }} label="${2:复选框}" "${3} />',
		],
		detail: 'Checkbox 复选框',
		documentation: `在一组备选项中进行多选。`,
		attrs: [
			{
				kind: 'Field',
				body: ['block='],
				detail: 'block',
				documentation: '是否为块级元素',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['indeterminate='],
				detail: 'indeterminate',
				documentation: '是否为半选',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['borderless'],
				detail: 'borderless',
				documentation: '是否开启无边框模式',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['name='],
				detail: 'name',
				documentation: '在表单内提交时的标识符',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['checked='],
				detail: 'checked',
				documentation: '是否选中',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['default-checked='],
				detail: 'default-checked',
				documentation: '是否选中',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['content='],
				detail: 'content',
				documentation: '单选内容',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['max-content-row='],
				detail: 'max-content-row',
				documentation: '内容最大行数限制',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['content-disabled='],
				detail: 'content-disabled',
				documentation: '是否选中',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['max-label-row='],
				detail: 'max-label-row',
				documentation: '主文案最大行数限制',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['placement='],
				detail: 'placement',
				documentation: '复选框和内容相对位置。可选项：left/right',
				vals: {
					kind: 'Value',
					body: ['left', 'right'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['readonly='],
				detail: 'readonly',
				documentation: '是否选中',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['shape='],
				detail: 'shape',
				documentation: '形状，可选值为 round square',
				vals: {
					kind: 'Value',
					body: ['round', 'square'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['value='],
				detail: 'value',
				documentation: '是否为选中状态',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['disabled='],
				detail: 'disabled',
				documentation: '是否禁用单选框',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['icon='],
				detail: 'icon',
				documentation:
					'String / Array / Slot 值为 circle 表示填充型图标、值为 line 表示描边型图标、值为 dot 表示圆点图标，值为 slot 时使用插槽',
				vals: {
					kind: 'Value',
					body: ['square'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['label='],
				detail: 'label',
				documentation: '标识符',
				vals: null,
			},
			/**
         * Checkbox Event
          事件名	说明	回调参数
          bind:change	当绑定值变化时触发的事件	当前组件的值
         */
			{
				kind: 'Event',
				body: ['bind:change='],
				detail: 'bind:change',
				documentation: '当绑定值变化时触发的事件',
				vals: null,
			},

			/**
         * Checkbox 外部样式类
          类名	说明
          custom-class	根节点样式类
          icon-class	图标样式类
          label-class	描述信息样式类
         */
			{
				kind: 'Field',
				body: ['t-class='],
				detail: 't-class',
				documentation: '根节点样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['icon-class-label='],
				detail: 'icon-class-label',
				documentation: '图标样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-icon='],
				detail: 't-class-icon',
				documentation: '描述信息样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-content='],
				detail: 't-class-content',
				documentation: '描述信息样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-border='],
				detail: 't-class-border',
				documentation: '描述信息样式类',
				vals: null,
			},
		],
		/**
       * Checkbox Slot
        名称	说明
        -	自定义文本
        icon	自定义图标
       */
		slot: {
			kind: 'Value',
			body: ['content'],
			detail: 'Checkbox 复选框 Slot',
			documentation: `
        icon	自定义图标
        `,
			vals: null,
		},
	},
}
